package com.lb.uts.constants;

import java.io.Serializable;


/**
 * 响应请求的参数的包装类</p>
 * 前端请求必须以这个结构返回</p>
 *
 * @Author liangb
 * @Date 2019/4/28 9:48
 */
public class BaseResponse<T extends Serializable> implements Serializable {

    /**
     * 返回code
     */
    private String returnCode;

    /**
     * 消息
     */
    private String returnMsg;

    /**
     * 返回的数据信息
     */
    private T data;

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getReturnCode() {
        return returnCode;
    }


    public void setReturnCode(String returnCode) {
        this.returnCode = returnCode;
    }

    public String getReturnMsg() {
        return returnMsg;
    }

    public void setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
    }

    @Override
    public String toString() {
        return "BaseResponse{" +
                "returnCode='" + returnCode + '\'' +
                ", returnMsg='" + returnMsg + '\'' +
                ", data=" + data +
                '}';
    }
}
